﻿using Entity;
using Microsoft.EntityFrameworkCore;
using System.Linq;
using System.Linq.Expressions;

namespace IDal
{
    /// <summary>
    /// 角色数据访问接口
    /// </summary>
    public interface IRoleInfoDal : IBaseDal<RoleInfo>
    {

        /// <summary>
        /// 添加角色
        /// </summary>
        /// <param name="roleInfo"></param>
        /// <returns></returns>
        public bool CreateRoleInfo(RoleInfo roleInfo);



        ///// <summary>
        /// 获取所有角色(没有真正查出来的)
        /// </summary>
        public DbSet<RoleInfo> GetRoleInfosDbSet();

        /// <summary>
        /// 更新角色
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        public bool UpdateRoleInfo(RoleInfo entity);
    }
}